package application;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class PreGameScreenPlayerRanking {

	 final SimpleStringProperty playerName;
	 final SimpleIntegerProperty playerScore; 
	 
	 // private final SimpleIntegerProperty playerScore =  new SimpleIntegerProperty(0); 
 
	 // private PreGameScreenPlayerRanking(String name, int score)
	 PreGameScreenPlayerRanking(String name, int score)
	 {
		 this.playerName = new SimpleStringProperty(name);
		 this.playerScore = new SimpleIntegerProperty(score);
	 }


	PreGameScreenPlayerRanking() {
		this.playerName = null;
		this.playerScore = null;
		// TODO Auto-generated constructor stub
	}


	public String getPlayerName()
	{
		return playerName.get();
	}
	
	public int getPlayerScore()
	{
		return playerScore.get();
	}
	
	void setPlayerScore(int pScore) 
	{
		playerScore.set(pScore);
	}

	void setPlayerName(String pName) 
	{
		playerName.set(pName);
	}
	
	/*
		public PreGameScreenPlayerRanking getRecord()
		{
			return this;
		}
	*/
}
